<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;

class THisdataLightintensity extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('t_hisdata_LightIntensity', function (Blueprint $table) {
             $table->engine = 'MyISAM';
             $table->charset = 'utf8';
             $table->collation = 'utf8_general_ci';
            // CONTENT
            $table->bigIncrements('hd_index')->nullable(false)->comment('');
			$table->datetime('rd_updatetime')->nullable(false)->comment('');
			$table->datetime('hd_datetime')->nullable(false)->comment('');
			$table->unsignedBigInteger('pdi_index')->nullable(false)->default(0)->comment('');
			$table->float('hd_LightIntensity1', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_LightIntensity2', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_LightIntensity3', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_LightIntensity4', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_LightIntensity5', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_LightIntensity6', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_LightIntensity7', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_LightIntensity8', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_LightIntensity9', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_LightIntensity10', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_LightIntensity_num', 9, 2)->nullable()->default(0)->comment('');
			$table->boolean('hd_LightIntensity1hwarn')->nullable()->default(0)->comment('');
			$table->boolean('hd_LightIntensity2hwarn')->nullable()->default(0)->comment('');
			$table->boolean('hd_LightIntensity3hwarn')->nullable()->default(0)->comment('');
			$table->boolean('hd_LightIntensity4hwarn')->nullable()->default(0)->comment('');
			$table->boolean('hd_LightIntensity5hwarn')->nullable()->default(0)->comment('');
			$table->boolean('hd_LightIntensity6hwarn')->nullable()->default(0)->comment('');
			$table->boolean('hd_LightIntensity7hwarn')->nullable()->default(0)->comment('');
			$table->boolean('hd_LightIntensity8hwarn')->nullable()->default(0)->comment('');
			$table->boolean('hd_LightIntensity9hwarn')->nullable()->default(0)->comment('');
			$table->boolean('hd_LightIntensity10hwarn')->nullable()->default(0)->comment('');
			$table->boolean('hd_LightIntensity1lwarn')->nullable()->default(0)->comment('');
			$table->boolean('hd_LightIntensity2lwarn')->nullable()->default(0)->comment('');
			$table->boolean('hd_LightIntensity3lwarn')->nullable()->default(0)->comment('');
			$table->boolean('hd_LightIntensity4lwarn')->nullable()->default(0)->comment('');
			$table->boolean('hd_LightIntensity5lwarn')->nullable()->default(0)->comment('');
			$table->boolean('hd_LightIntensity6lwarn')->nullable()->default(0)->comment('');
			$table->boolean('hd_LightIntensity7lwarn')->nullable()->default(0)->comment('');
			$table->boolean('hd_LightIntensity8lwarn')->nullable()->default(0)->comment('');
			$table->boolean('hd_LightIntensity9lwarn')->nullable()->default(0)->comment('');
			$table->boolean('hd_LightIntensity10lwarn')->nullable()->default(0)->comment('');
			$table->boolean('hd_LightIntensity1consta')->nullable()->default(0)->comment('');
			$table->boolean('hd_LightIntensity2consta')->nullable()->default(0)->comment('');
			$table->boolean('hd_LightIntensity3consta')->nullable()->default(0)->comment('');
			$table->boolean('hd_LightIntensity4consta')->nullable()->default(0)->comment('');
			$table->boolean('hd_LightIntensity5consta')->nullable()->default(0)->comment('');
			$table->boolean('hd_LightIntensity6consta')->nullable()->default(0)->comment('');
			$table->boolean('hd_LightIntensity7consta')->nullable()->default(0)->comment('');
			$table->boolean('hd_LightIntensity8consta')->nullable()->default(0)->comment('');
			$table->boolean('hd_LightIntensity9consta')->nullable()->default(0)->comment('');
			$table->boolean('hd_LightIntensity10consta')->nullable()->default(0)->comment('');
			$table->boolean('hd_NetCom')->nullable()->default(0)->comment('');
			$table->unique('hd_index', 'hd_index');
			
        });

        
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('t_hisdata_LightIntensity');
    }
}
